package stu.aistar.day03;

/**
 * 数组的基本使用
 */
public class ArrayDemo {
    public static void main(String[] args) {
        String [] arr = new String[3];

        arr[0] = "擎天柱";
        arr[1] = "大黄蜂";
        arr[3] = "威震天";

        System.out.println(args.length);//数组长度为3

        System.out.println(arr[0]);

        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }

        System.out.println("=========");
        int[] arr2 = {3,4,5};
        for (int i : arr2) {
            System.out.println(i);
        }

        System.out.println("=========");

        int[] arr3 = new int[]{3,4,5};
    }
}
